package com.spider.moudle.entity;

import com.alibaba.fastjson.JSON;

/**
 * Created by Linbo Hu on 2017/12/19.
 * 单个网站的配置实体
 */
public class Setting {

    /**
     * 设置的唯一标识符，定义前缀可用
     */
    private String site;

    /**
     * 网站的中文名称
     */
    private String name;

    /**
     * 网站主页
     */
    private String index;

    /**
     * Crwler的数量
     */
    private Integer crawler_num;

    /**
     * 生成任务的时间间隔
     */
    private Integer interval_minutes;

    /**
     * 言论的任务名称
     */
    private String speech_task;

    /**
     * 言论的线程数
     */
    private Integer speech_work_count;

    /**
     * 用户的任务名称
     */
    private String user_task;

    /**
     * 用户的线程数
     */
    private Integer user_work_count;

    /**
     * 爬取回复抓取的最大页码数
     */
    private Integer max_page_count;

    /**
     * 该网站的class路径
     */
    private String crawler_class_path;

    /**
     * 该网站是否在主线程开始工作
     */
    private Boolean spider_is_worked;

    /**
     * 该网站生成任务的线程数量
     */
    private Integer task_thread_count;

    /**
     * 回复线程池
     */
    private Integer reply_thread_count;

    /**
     * 该网站的类型
     */
    private WebType web_type;


    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public Integer getCrawler_num() {
        return crawler_num;
    }

    public void setCrawler_num(Integer crawler_num) {
        this.crawler_num = crawler_num;
    }

    public Integer getInterval_minutes() {
        return interval_minutes;
    }

    public void setInterval_minutes(Integer interval_minutes) {
        this.interval_minutes = interval_minutes;
    }

    public String getSpeech_task() {
        return speech_task;
    }

    public void setSpeech_task(String speech_task) {
        this.speech_task = speech_task;
    }

    public Integer getSpeech_work_count() {
        return speech_work_count;
    }

    public void setSpeech_work_count(Integer speech_work_count) {
        this.speech_work_count = speech_work_count;
    }

    public String getUser_task() {
        return user_task;
    }

    public void setUser_task(String user_task) {
        this.user_task = user_task;
    }

    public Integer getUser_work_count() {
        return user_work_count;
    }

    public void setUser_work_count(Integer user_work_count) {
        this.user_work_count = user_work_count;
    }

    public Integer getMax_page_count() {
        return max_page_count;
    }

    public void setMax_page_count(Integer max_page_count) {
        this.max_page_count = max_page_count;
    }

    public Integer getReply_thread_count() {
        return reply_thread_count;
    }

    public void setReply_thread_count(Integer reply_thread_count) {
        this.reply_thread_count = reply_thread_count;
    }

    public WebType getWeb_type() {
        return web_type;
    }

    public void setWeb_type(WebType web_type) {
        this.web_type = web_type;
    }

    public String getCrawler_class_path() {
        return crawler_class_path;
    }

    public void setCrawler_class_path(String crawler_class_path) {
        this.crawler_class_path = crawler_class_path;
    }

    public Boolean getSpider_is_worked() {
        return spider_is_worked;
    }

    public void setSpider_is_worked(Boolean spider_is_worked) {
        this.spider_is_worked = spider_is_worked;
    }

    public Integer getTask_thread_count() {
        return task_thread_count;
    }

    public void setTask_thread_count(Integer task_thread_count) {
        this.task_thread_count = task_thread_count;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
